package io.gatling.extensions.mongodb

import io.gatling.extensions.mongodb.builder.MongoDBActionBuilder
import io.gatling.extensions.mongodb.check.MongoCheckSupport
import io.gatling.extensions.mongodb.protocol.MongoDBProtocolBuilder


object Predef extends MongoCheckSupport {

  // val uri: String = "mongodb+srv://<username>:<password>@<cluster-address>/test?retryWrites=true&w=majority"
  def mongo(url: String): MongoDBProtocolBuilder = MongoDBProtocolBuilder(url)

  def mongo[R](name: String, dbName: String, collectionName: String): MongoDBActionBuilder[R] = MongoDBActionBuilder(name, dbName, collectionName)
}
